package com.app.micaihu.custom.view.listivew;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * 默认全部展开的listview
 * Created by linkai on 2016/10/23.
 */
public class ExpandListview extends ListView {
    public ExpandListview(Context context) {
        super(context);
    }

    public ExpandListview(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ExpandListview(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST));

    }
}
